﻿using System;
using System.Collections.Generic;

namespace Shuba.Business
{
    public class HO
    {
        Shuba.Data.HO dl;

        public HO()
        {
            dl = new Shuba.Data.HO();
        }

        public List<Shuba.Model.HOInfo> GetList(string VALUE)
        {
            return dl.GetList(VALUE);
        }

        public List<Shuba.Model.HOInfo> GetListApproval(string VALUE, string UPDATE_BY)
        {
            return dl.GetListApproval(VALUE, UPDATE_BY);
        }

        public Shuba.Model.HOInfo Get(string id)
        {
            return dl.Get(id);
        }

        public Shuba.Model.HOInfo GetApprovalByID(string id)
        {
            return dl.GetApprovalByID(id);
        }

        public static bool CheckDependency(string HO_ID)
        {
            return Shuba.Data.HO.CheckDependency(HO_ID);
        }

        public void Save(Shuba.Model.HOInfo Ho)
        {
            dl.Save(Ho);
        }

        public void Approve(string HO_ID, string ACT_TYPE)
        {
            dl.Approve(HO_ID, ACT_TYPE);
        }

        public void Reject(string HO_ID)
        {
            dl.Reject(HO_ID);
        }
    }
}
